package com.imooc.product.enums;

import lombok.Getter;

/**
 * @author wy
 * @version 1.0
 * @date 2020/3/9 21:56
 * @description
 **/
@Getter
public enum ResultEnum {
    PRODUCT_NOT_EXIST(1,"商品不存在"),

    PRODUCT_STOCK_ERROR(2,"库存有误"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
